package com.arui.controller;

import com.arui.Result;
import com.arui.service.AruioUserService;
import com.arui.vo.AruioUserVO;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Description 用户控制器
 * @Date 2024/8/28 11:22
 * @Created by 10574
 */
@RestController
@RequestMapping("user")
@RequiredArgsConstructor
public class UserController {
    private final AruioUserService aruioUserService;

    @GetMapping("getUserList")
    public Result<List<AruioUserVO>> getUserList() {
        return Result.data(aruioUserService.getUserList(), "查询成功");
    }
}
